package com.towexin.application.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * TODO
 * 用户与角色中间表
 * @author Towexin
 * @version 1.0
 * @date 2021/4/13 15:03
 */
@Data
@TableName("t_user_role")
@NoArgsConstructor
@AllArgsConstructor
public class UserRole {
    @TableId(type = IdType.ASSIGN_UUID)
    private String uId;     // 用户id

    @TableField(insertStrategy = FieldStrategy.NOT_NULL)
    private String rId;     // 角色id
}
